package com.gmail.wangzdl.swing.jframe;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class MainApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		//before start autodetect itself. try to connect to db
		checkEnv(args[0]);
		
		//if OK show Login dialog
		showLoginDLG();
		
		//if pass show MainJFrame
		showMainFrame();

	}

	private static void showMainFrame() {
		JFrame jf= new BaseJFrame();
		jf.setVisible(true);		
	}

	private static void showLoginDLG() {
		// TODO Auto-generated method stub
		
	}

	private static void checkEnv(String dbfilename) {
		// TODO Auto-generated method stub
		
	}
	
	

}
